package com.sdkj.dspservice.modules.analysis.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.sdkj.dspservice.common.base.service.impl.BaseServiceImpl;
import com.sdkj.dspservice.modules.analysis.dao.PageAnalysisDao;
import com.sdkj.dspservice.modules.analysis.entity.PageAnalysis;
import com.sdkj.dspservice.modules.analysis.service.PageAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 需求类型service实现类
 *
 * @author tm
 */
@Service
@Transactional(readOnly = true)
@DS(value="clickhouse")
public class PageAnalysisServiceImpl extends BaseServiceImpl<PageAnalysisDao, PageAnalysis> implements PageAnalysisService {

    @Autowired
    private PageAnalysisDao dao;

    @Override
    public List<String> listUrl(PageAnalysis pageAnalysis) {
        return dao.listUrl(pageAnalysis);
    }

    @Override
    public List<PageAnalysis> listChildren(PageAnalysis pageAnalysis) {
        return dao.listChildren(pageAnalysis);
    }

    @Override
    public List<PageAnalysis> sum(PageAnalysis pageAnalysis) {
        return dao.sum(pageAnalysis);
    }

    @Override
    public List<PageAnalysis> sumByDay(PageAnalysis pageAnalysis) {
        return dao.sumByDay(pageAnalysis);
    }

    @Override
    public List<PageAnalysis> sumByCity(PageAnalysis pageAnalysis) {
        return dao.sumByCity(pageAnalysis);
    }

    @Override
    public List<PageAnalysis> sumByCityAndDay(PageAnalysis pageAnalysis) {
        return dao.sumByCityAndDay(pageAnalysis);
    }

    @Override
    public PageAnalysis getTitle(PageAnalysis pageAnalysis) {
        return dao.getTitle(pageAnalysis);
    }

}
